package com.atguigu.gulimall.ware.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @Classname NoStockException
 * @Description TODO
 * @Date 2021/10/17 17:56
 * @Author Anonymous
 */

public class NoStockException extends RuntimeException {

    @Getter
    @Setter
    private Long skuId;

    public NoStockException(Long skuId) {
        super("商品id" + skuId + ":没有足够的库存");
    }
}
